<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zctype_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zctype_id" data-rule="required" min="0" data-source="zctype/index" class="form-control selectpage" name="row[zctype_id]" type="text" value="{$row.zctype_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zcdevice_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zcdevice_ids" data-rule="required" data-source="zcdevice/index" data-multiple="true" class="form-control selectpage" name="row[zcdevice_ids]" type="text" value="{$row.zcdevice_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Diaobo_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-diaobo_ids" data-rule="required" data-source="diaobo/index" data-multiple="true" class="form-control selectpage" name="row[diaobo_ids]" type="text" value="{$row.diaobo_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fgroup')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fgroup" class="form-control" name="row[fgroup]" type="text" value="{$row.fgroup|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ffactory')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ffactory" class="form-control" name="row[ffactory]" type="text" value="{$row.ffactory|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sqdw')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sqdw" class="form-control" name="row[sqdw]" type="text" value="{$row.sqdw|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sydd')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sydd" class="form-control" name="row[sydd]" type="text" value="{$row.sydd|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num" class="form-control" name="row[num]" type="number" value="{$row.num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cgstate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="cgstateList" item="vo"}
            <label for="row[cgstate]-{$key}"><input id="row[cgstate]-{$key}" name="row[cgstate]" type="radio" value="{$key}" {in name="key" value="$row.cgstate"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dbstate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="dbstateList" item="vo"}
            <label for="row[dbstate]-{$key}"><input id="row[dbstate]-{$key}" name="row[dbstate]" type="radio" value="{$key}" {in name="key" value="$row.dbstate"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ysstate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="ysstateList" item="vo"}
            <label for="row[ysstate]-{$key}"><input id="row[ysstate]-{$key}" name="row[ysstate]" type="radio" value="{$key}" {in name="key" value="$row.ysstate"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num0')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num0" class="form-control" name="row[num0]" type="number" value="{$row.num0|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Num1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-num1" class="form-control" name="row[num1]" type="number" value="{$row.num1|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('State')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="stateList" item="vo"}
            <label for="row[state]-{$key}"><input id="row[state]-{$key}" name="row[state]" type="radio" value="{$key}" {in name="key" value="$row.state"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Po')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-po" class="form-control" name="row[po]" type="text" value="{$row.po|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gys')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gys" class="form-control" name="row[gys]" type="text" value="{$row.gys|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remarks" class="form-control " rows="5" name="row[remarks]" cols="50">{$row.remarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rukudate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rukudate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[rukudate]" type="text" value="{$row.rukudate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ysdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ysdate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[ysdate]" type="text" value="{$row.ysdate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ysremarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-ysremarks" class="form-control " rows="5" name="row[ysremarks]" cols="50">{$row.ysremarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gsdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gsdate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[gsdate]" type="text" value="{$row.gsdate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ysmanager')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ysmanager" class="form-control" name="row[ysmanager]" type="text" value="{$row.ysmanager|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cgmanager')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cgmanager" class="form-control" name="row[cgmanager]" type="text" value="{$row.cgmanager|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dbmanager')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dbmanager" class="form-control" name="row[dbmanager]" type="text" value="{$row.dbmanager|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attachfiles')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-attachfiles" class="form-control" size="50" name="row[attachfiles]" type="text" value="{$row.attachfiles|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-attachfiles" class="btn btn-danger faupload" data-input-id="c-attachfiles" data-multiple="true" data-preview-id="p-attachfiles"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-attachfiles" class="btn btn-primary fachoose" data-input-id="c-attachfiles" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-attachfiles"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-attachfiles"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ysadmin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ysadmin_id" data-rule="required" min="0" data-source="ysadmin/index" class="form-control selectpage" name="row[ysadmin_id]" type="text" value="{$row.ysadmin_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cgadmin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cgadmin_id" data-rule="required" min="0" data-source="cgadmin/index" class="form-control selectpage" name="row[cgadmin_id]" type="text" value="{$row.cgadmin_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dbadmin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dbadmin_id" data-rule="required" min="0" data-source="dbadmin/index" class="form-control selectpage" name="row[dbadmin_id]" type="text" value="{$row.dbadmin_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sqadmin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sqadmin_id" data-rule="required" min="0" data-source="sqadmin/index" class="form-control selectpage" name="row[sqadmin_id]" type="text" value="{$row.sqadmin_id|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
